<?php

namespace app\model;

use think\Model;

class ClassDepartmentModel extends Model
{
    protected $table = "class_department";
    protected $pk = "class_department_id";
    public function departmentTable() {
        return $this->hasOne("DepartmentModel","department_id","department_id");
    }
    public function classTable() {
        return $this->hasOne("ClassModel","class_id","class_id");
    }
}